//
//  NSMutableArray+ArrayEx.m
//  GLGW_Shoping
//
//  Created by yang on 2018/11/13.
//  Copyright © 2018年 yang. All rights reserved.
//

#import "NSMutableArray+ArrayEx.h"

@implementation NSMutableArray (ArrayEx)

+(void)load{
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        Method imp = class_getClassMethod(self , @selector(addObject:));
        Method changeImp = class_getClassMethod(self, @selector(glgwAddObject:));
        method_exchangeImplementations(imp, changeImp);
    });
}

-(void)glgwAddObject:(id)anObject{
    if (anObject) {
        [self glgwAddObject:anObject];
    }
}

@end
